// 用于存储图片路径
const state = {
    // 图片路径
    imgpaths: [],
    // imgpaths: localStorage.getItem(imgpaths[index]),
    // test: "b4b797913756456bb5ffd8d661ab79e5.jpg"
}
const getters = {

}
// 改变state状态
const mutations = {
    addimgpath(state,{path,index}){
        state.imgpaths[index] = path
        localStorage.setItem(index,path)
    }
}
const actions = {
    addimagepath(context,{path,index}){
        context.commit('addimgpath',{path,index})
    }
}


export default {
    state,
    getters,
    mutations,
    actions
}